﻿<html>
<head>
    <TITLE></TITLE>
    <meta http-equiv=Content-Type content="text/html; charset=utf-8">
    <style type=text/css>
        a{text-decoration: none}
        a:link {color: #000000;  font-size: 16px;  ext-decoration: none  }
        a:visited {color: #000000;  font-size: 16px;  text-decoration: none }
        a:hover {color: #4dc5e3;  font-size: 16px;  text-decoration: none  }
        body {margin: 0px;  padding: 0px;  }
        td{font-size: 12px;  line-height: 150%  }
        .leftnav {background-color: #bfe1fd;  background-repeat: no-repeat;  background-position: 10px;  padding-left: 16px;  height: 40px;  line-height: 25px;  border: solid 1px #ffffff;  cursor: pointer;}
        .label{
            line-height: 12px;
            padding: 1px 5px;
            /*position: relative;*/
            /*right: 6px;*/
            /*top: -12px;*/
        }
        .label-primary{
            background-color: #1ab394;
            color: #FFFFFF;
        }
    </style>
    <script src="__FINANCE__/Scripts/jquery.js" charset="utf-8"></script>
    <link href="__FINANCE__/layui/css/layui.css" rel='stylesheet' type='text/css'/>
    <link href="__DEMO__/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
</head>
<base target="main">
<body leftMargin="0" topMargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">
<table cellspacing=0 cellpadding=0 border=0 height="100%" width="100%" align="center">
    <tr>
        <td valign="top">
            <table width="100%" border=0 align=center cellpadding=0 cellspacing=0 id="mnuList" style="HEIGHT: 100%">
                <tr>
                    <td bgcolor=#F7f7f7 id=outLookBarShow style="HEIGHT: 100%;width: 100%" valign=top align=middle
                        name="outLookBarShow">
                        <!--<table width="100%" cellpadding="3" cellspacing="1" bgcolor="#87B4E0">-->
                            <!--<tr>-->
                                <!--<td background="__FINANCE__/Images/caidan_bj.png"  style="padding-left: 16px;height: 40px;line-height: 25px;border: solid 1px #ffffff;cursor: pointer;"><i class="menu-icon fa fa-laptop" style="font-size: 14px;"></i><a style="font-size: 18px" href="javascript:;">功能菜单</a></td>-->
                            <!--</tr>-->
                        <!--</table>-->
                        <table width="100%" cellpadding="3" cellspacing="1" bgcolor="#87B4E0">
                            <tr>
                                <td class="leftnav"><i class="fa fa-list" style="font-size: 14px;"></i><a onclick="chanage(this,0)" style="color: #3678ef;margin-left: 5px" data-index = '0' href='{:url("/finance/Index/salary")}' target="main">工资发放表</a></td>
                            </tr>
                            <tr>
                                <td class="leftnav"><i class="fa fa-table" style="font-size: 14px"><a style="margin-left: 5px" onclick="chanage(this,1)" data-index = '1' href='{:url("/finance/Salaryback/index")}' target="main">工资补发表</a></td>
                            </tr>
                            <tr>
                                <td class="leftnav"><i class="fa fa-list-ul" style="font-size: 14px"><a style="margin-left: 5px" onclick="chanage(this,2)" data-index = '2' href='{:url("/finance/Bonus/index")}' target="main">奖金发放表</a></td>
                            </tr>
                            <tr>
                                <td class="leftnav"><i class="fa fa-file-o" style="font-size: 14px">
                                    <a id="bao_xiao_dan" style="margin-left: 5px" onclick="chanage(this,3)" data-index = '3' href='{:url("/finance/Expense/index")}' target="main">报销单据表</a>
                                    <!--<i class="layui-icon">&#xe645;12</i>-->
                                    {if session('user_name') == 'admin' }
                                       {if $count > 0 }
                                    <i class="fa fa-bell" style="font-size: 14px;color: #f50044;margin-left: 10px"></i>
                                    <span class="label  count_num" id="count_num">{$count}</span>
                                       {/if}
                                    {/if}
                                </td>
                            </tr>
                            {if session('user_name') == 'admin' }
                            <tr>
                                <td class="leftnav"><i class="layui-icon">&#xe66f;</i><a style="margin-left: 5px" onclick="chanage(this,4)" data-index = '4' href='{:url("/finance/User/index")}' target="main">用户组管理</a></td>
                            </tr>
                            {else/}
                            <tr>
                                <td class="leftnav"><i class="layui-icon">&#xe66f;</i><a style="margin-left: 5px" onclick="chanage(this,4)" data-index = '4' href='{:url("/finance/User/index")}' target="main">个人管理</a></td>
                            </tr>
                            {/if}
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<script>
    function chanage(obj,num) {
     $(obj).css('color', '#3678ef');
     $('.leftnav').find('a').each(function(){
         var index = $(this).data('index');
         if(index != num){
             // console.log(index);
             $(this).css('color', 'black');
         }
     });
    }
</script>
</body>
</html>
